package com.apimarket.exception;

//import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Mem_IM
 * @create 2021-04-13 19:34
 * @desc
 **/
@Data
public class ResultException extends RuntimeException {

//    private static final long serialVersionUID = 6025994003503108921L;

    /**
     * 错误码.
     */
    //@ApiModelProperty(name = "code", value = "错误码")
    private Integer code;

    /**
     * 提示信息.
     */
    //@ApiModelProperty(name = "msg", value = "提示信息")
    private String msg;

    /**
     * 具体的内容.
     */
    //@ApiModelProperty(name = "data", value = "数据内容")
    private Object data;

    public ResultException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
        this.data = null;
    }


}
